#include <stdio.h>
#define N 81
int search(int list[], int n, int x);
int main()
{
    int n;
    int a[N];
    int i, j;
    int x, t;
    printf("Input n:"); scanf("%d", &n);
    printf("Input %d integers:", n);
    for (i = 0; i < n; i++)
    {
        scanf("%d", &a[i]);
    }
    printf("Input x:"); scanf("%d", &x);
    t = search(a, n, x);
    if (t == -1)
    {
        printf("Not Found");
    }
    else
    {
        printf("index=%d", t);
    }
    return 0;
}
int search(int list[], int n, int x)
{
    int i, j;
    int count = -1;
    for (i = 0; i < n; i++)
    {
        if (list[i] == x)
        {
            count = i;
            break;
        }
    }
    if (count == -1)
    {
        return -1;
    }
    else
    {
        return count;
    }
}